#include "wai.h"
#include "ui_wai.h"
#include"kaichang.h"

wai::wai(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::wai)
{
    ui->setupUi(this);
    setWindowTitle("wai");
    setWindowFlags(Qt::Window|Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground);
    setWindowFlags(Qt::FramelessWindowHint |Qt::WindowStaysOnTopHint);
    QImage*wa=new QImage;
            wa->load(":/new/prefix2/wai.png");
            ui->label->setPixmap(QPixmap::fromImage(*wa));
}

wai::~wai()
{
    delete ui;
}

void wai::recvkaichang()
{
    this->show();
}

void wai::on_pushButton_clicked()
{
    this->hide();
    emit showfh();
}
